package product

import (
	"github.com/gin-gonic/gin"
	v1 "vue-admin-server/api/v1"
)

type TestReportRouter struct{}

func (e *TestReportRouter) InitTestReportRouter(Router *gin.RouterGroup) {
	//testDataRouter := Router.Group("cos_report").Use(middleware.OperationRecord())
	testDataRouterWithoutRecord := Router.Group("test_report")
	testReportApi := v1.ApiGroupApp.ProductApiGroup.ChipTestReportApi
	{
		//testDataRouter.POST("product", chipProductApi.CreateExaProduct)   // 创建一个芯片产品
		//testDataRouter.PUT("product", chipProductApi.UpdateExaProduct)    // 更新芯片产品
		//testDataRouter.DELETE("product", chipProductApi.DeleteExaProduct) // 删除芯片产品
	}
	{
		testDataRouterWithoutRecord.GET("history", testReportApi.GetHistory)
		testDataRouterWithoutRecord.GET("info", testReportApi.GetCosReportInfo)
	}
}
